﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DestoryArea : MonoBehaviour
{

    // 如果飞出这个区域 我们就应该销毁这个对象
    void OnTriggerExit2D(Collider2D other) {

        Debug.Log("OnTriggerExit2D!!"+ other.name);
        Destroy(other.gameObject);
    }
}
